﻿using Abp.AutoMapper;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace FwProject.PrePaymentInfo.Dto
{
    [AutoMap(typeof(PrePaymentInfoModel))]
    public class PrePaymentInfoEnterDto
    {
        /// <summary>
        /// 账户编号
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public Guid CapitalAccountId { get; set; }

        ///// <summary>
        ///// 账号
        ///// </summary>
        //public string AccountNo { get; set; }
        ///// <summary>
        ///// 账户名称
        ///// </summary>
        //[Required(ErrorMessage = "{0}不能为空")]
        //public string AccountName { get; set; }
        /// <summary>
        /// 经办人ID
        /// </summary>
        [Required(ErrorMessage = "{0}不能为空")]
        public long AgentPeoperUserId { get; set; }
        /// <summary>
        /// 经办人姓名
        /// </summary>
        [Display(Name = "经办人")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string AgentPeoper { get; set; }
        /// <summary>
        /// 餐厅名称
        /// </summary>
        [Display(Name = "餐厅名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string RestaurantInfoName { get; set; }
        /// <summary>
        /// 餐厅编号
        /// </summary>
        [Display(Name ="餐厅")]
        public Guid RestaurantInfoId { get; set; }
        /// <summary>
        /// 收退金额
        /// </summary>
        [Display(Name = "收退金额")]
        [Required(ErrorMessage = "{0}不能为空")]
        [Range(0.01, int.MaxValue, ErrorMessage = "金额必须大于0")]
        public decimal PrePaymentPrice { get; set; } = 0.0m;
        /// <summary>
        /// 备注
        /// </summary>
        public string RemarkContent { get; set; }
        /// <summary>
        /// 收退类型
        /// </summary>
        public PrePaymentInfoType PrePaymentInfoType { get; set; } = PrePaymentInfoType.收预交金;

        public PrePaymentInfoStatus PrePaymentInfoStatus { get; set; } = PrePaymentInfoStatus.未提交;

    
    }
}
